package com.kaifamiao.association.entity;

import java.util.Set;

public class Student {

    private Integer id ;
    private String name ;

    // 维护从 Student 到 Course 的 一对多 关联关系
    private Set<Course> courses ; // 当前学生所选修的课程

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Course> getCourses() {
        return courses;
    }

    public void setCourses(Set<Course> courses) {
        this.courses = courses;
    }
}
